package com.sky.service;

import com.sky.dto.EmployeeDTO;
import com.sky.dto.EmployeeLoginDTO;
import com.sky.dto.EmployeePageQueryDTO;
import com.sky.entity.Employee;
import com.sky.result.PageResult;

public interface EmployeeService {

    /**
     * 员工登录
     * @param employeeLoginDTO
     * @return
     */
    Employee login(EmployeeLoginDTO employeeLoginDTO);
    //新增员工(day02任务一)
    void addEmp(EmployeeDTO employeeDTO);
    //员工分页查询(day02任务二)
    PageResult findByPage(EmployeePageQueryDTO employeePageQueryDTO);
    //启动禁用员工账号(day02任务三)
    void setEmpStatus(Integer status, Integer id);
    //根据ID获取员工信息(day02任务四)
    Employee findById(Long id);
    //更新员工(day02任务四)
    void updateEmp(EmployeeDTO employeeDTO);
}
